package com.wnnight.wys.mapper.menu;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wnnight.wys.entity.menu.Menu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName: MenuMapper
 * @Description: //TODO
 * @author: CHX42
 * @date: 2022/9/9-10:40
 * @version: v1.0
 */
public interface MenuMapper extends BaseMapper<Menu> {
    @Select("SELECT * FROM wys_role_menu LEFT JOIN wys_menu ON wys_role_menu.menu_id=wys_menu.id ${ew.customSqlSegment}")
    Page<Menu> getMenuPage(Page<Menu> page, @Param("ew") QueryWrapper<Menu> wrapper);

}
